3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage highlight styles.
You can use the Q3HighlightStyle_New function to create a new highlight style object.
TQ3StyleObject Q3HighlightStyle_New (
TQ3AttributeSet highlightAttribute);
The Q3HighlightStyle_New function returns, as its function result, a new style object having the highlight style specified by the highlightAttribute parameter. The highlightAttribute parameter should be a reference to an attribute set.
If a new style object could not be created, Q3HighlightStyle_New returns the value NULL .
To change the current highlight style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3HighlightStyle_Submit (described next) to draw the style in immediate mode.
See "Highlight Styles" for a description of highlight styles.
You can use the Q3HighlightStyle_Submit function to submit a highlight style in immediate mode.
TQ3Status Q3HighlightStyle_Submit (
TQ3AttributeSet highlightAttribute,
TQ3ViewObject view);
You can use the Q3HighlightStyle_Get function to get the highlight style value of a highlight style.
TQ3Status Q3HighlightStyle_Get (
TQ3StyleObject highlight,
TQ3AttributeSet *highlightAttribute);
You can use the Q3HighlightStyle_Set function to set the highlight style value of a highlight style.
TQ3Status Q3HighlightStyle_Set (
TQ3StyleObject highlight,
TQ3AttributeSet highlightAttribute);
Previous | QD3D Book | Overview | Chapter Contents | Next |